﻿<%@ Page Language="C#" MasterPageFile="~/Share/agent.master" AutoEventWireup="true"
    CodeFile="PostAddress.aspx.cs" Inherits="Agent_PostAddress" Title="收获地址管理" %>

<%@ Register Assembly="mybutton" Namespace="BlogLan.Web.Controls" TagPrefix="cc1" %>
<%@ Register Src="~/Control/Agent_Account_Menu.ascx" TagName="Agent_Account_Menu"
    TagPrefix="MC" %>
<%@ Register Src="../Control/Area.ascx" TagName="Area" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .sddz_1_3
        {
            text-align: left;
        }
        span{ white-space:nowrap;}
    </style>
    <script src="../JS/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="../JS/AreaAjax.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="Server">
    <MC:Agent_Account_Menu ID="Agent_Account_Menu" runat="server" />
    <div class="sddz_1_1">
        <div class="sddz_1_2">
            <asp:Repeater ID="rpAddress" runat="server">
                <HeaderTemplate>
                    <table  width="660" cellspacing="0" cellpadding="0" border="0" style="border: 1px solid rgb(220, 220, 220);">
                        <tbody>
                            <tr>
                                <td height="25" valign="top" colspan="5">
                                    <table height="24" width="660" cellspacing="0" cellpadding="0" border="0" align="center"
                                        style="background-color: rgb(238, 238, 238);">
                                        <tbody>
                                            <tr>
                                                <td style="color: rgb(143, 143, 143); font-weight: bold; font-size: 14px;">
                                                    <div align="center">
                                                        收单人</div>
                                                </td>
                                                <td style="color: rgb(143, 143, 143); font-weight: bold; font-size: 14px;">
                                                    <div align="center">
                                                        收单人地址</div>
                                                </td>
                                                <td style="color: rgb(143, 143, 143); font-weight: bold; font-size: 14px;">
                                                    <div align="center">
                                                        邮编</div>
                                                </td>
                                                <td style="color: rgb(143, 143, 143); font-weight: bold; font-size: 14px;">
                                                    <div align="center">
                                                        电话/手机</div>
                                                </td>
                                                <td style="color: rgb(143, 143, 143); font-weight: bold; font-size: 14px;">
                                                    <div align="center">
                                                        操作</div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td height="35" width="121" style="border-bottom: 1px solid rgb(220, 220, 220); color: rgb(143, 143, 143);">
                            <div align="center">
                                <%#Eval("Name") %></div>
                        </td>
                        <td width="202" style="border-bottom: 1px solid rgb(220, 220, 220); color: rgb(143, 143, 143);">
                            <div align="center">
                                <%#Eval("Address") %></div>
                        </td>
                        <td width="82" style="border-bottom: 1px solid rgb(220, 220, 220); color: rgb(143, 143, 143);">
                            <div align="center">
                                <%#Eval("ZipCode") %></div>
                        </td>
                        <td width="173" style="border-bottom: 1px solid rgb(220, 220, 220); color: rgb(143, 143, 143);">
                            <div align="center">
                                <%#Eval("Tel") %></div>
                        </td>
                        <td width="82" style="border-bottom: 1px solid rgb(220, 220, 220); color: rgb(143, 143, 143);">
                            <div align="center">
                                <a onclick="return confirm('确定删除?')" href="?id=<%#Eval("PostID") %>">删除</a></div>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </tbody> </table></FooterTemplate>
            </asp:Repeater>
        </div>
        <div class="sddz_1_3">
            <div class="sddz_1_4">
                新增收货地址</div>
            <div class="sddz_1_5">
                <div class="sddz_1_6">
                    收货人姓名：</div>
                <div class="sddz_1_7">
                    <asp:TextBox ID="name" runat="server" CssClass="sddz_1_8"></asp:TextBox>
                </div>
                <div class="sddz_1_9">
                    *</div>
                <asp:RequiredFieldValidator ID="rvName" runat="server" ControlToValidate="name" Display="Dynamic"
                    ErrorMessage="填写收货人姓名"></asp:RequiredFieldValidator>
            </div>
            <div class="sddz_1_5">
                <div class="sddz_1_6">
                    所在地区：</div>
                <div class="sddz_1_10" style="width: auto;">
                    <uc1:Area ID="Area1" runat="server" />
                </div>
                <div class="sddz_1_9">
                    *</div>
            </div>
            <div class="sddz_1_5_1">
                <div class="sddz_1_11">
                    街道地址：</div>
                <div class="sddz_1_12">
                    <textarea id="address" runat="server" cols="50" rows="2" class="sddz_1_13"></textarea>
                </div>
                <div class="sddz_1_14">
                    <div class="sddz_1_9">
                        *</div>
                    <div class="sddz_1_15"> 
                        (不需要重复填写省/市/区)</div>
                        <div style="clear:both;"><asp:RequiredFieldValidator ID="rvaddress" runat="server" ControlToValidate="address"
                        Display="Dynamic" ErrorMessage="填写街道地址">
                    </asp:RequiredFieldValidator></div>
                   
                </div>
            </div>
            <div class="sddz_1_5">
                <div class="sddz_1_6">
                    邮政编码：</div>
                <div class="sddz_1_7">
                    <asp:TextBox ID="zipcode" runat="server" CssClass="sddz_1_8"></asp:TextBox>
                </div>
                <div class="sddz_1_9">
                    *</div>
                    <asp:RequiredFieldValidator ID="rvzipcode" runat="server" ControlToValidate="zipcode"
                        Display="Dynamic" ErrorMessage="填写邮政编码">
                    </asp:RequiredFieldValidator>
            </div>
            <div class="sddz_1_5">
                <div class="sddz_1_6">
                    电话号码：</div>
                <div class="sddz_1_7">
                    <asp:TextBox ID="tel" runat="server" CssClass="sddz_1_8"></asp:TextBox>
                </div>
                <div class="sddz_1_15">
                    (区号-电话号码-分机)</div>
            </div>
            <div class="sddz_1_5">
                <div class="sddz_1_6">
                    手机号码：</div>
                <div class="sddz_1_7">
                    <asp:TextBox ID="mobilePhone" runat="server" CssClass="sddz_1_8"></asp:TextBox>
                </div>
            </div>
            <div class="grxx_1_21">
                <cc1:ClickOnceButton ID="save" runat="server" Text="保存" OnClick="save_Click" /></div>
        </div>
    </div>
</asp:Content>
